//
//  DBJSecondTabModel.m
//  DBJ
//
//  Created by Captain_czq on 16/11/16.
//  Copyright © 2016年 itcast. All rights reserved.
//

#import "DBJSecondTabModel.h"
#define TabTimeData @"timeDateKey"
#define TabillType @"illTypeKey"
#define TabillMince @"illMinceKey"
#define TabillIcons @"illIconsKey"
@implementation DBJSecondTabModel

///* 时间标签 */
//@property(nonatomic,copy)NSString *timeDate;
//
///* 病例描述 */
//@property(nonatomic,copy)NSString *illType;
//
///* 病例细分 */
//@property(nonatomic,copy)NSString *illMince;
//
///* 病例图片 */
//@property(nonatomic,strong)NSArray *illIcons;
/* 标签云 */
//@property(nonatomic,strong)NSArray *tagList;
//
///* 描述 */
//@property(nonatomic,copy)NSString *desc;

/* 归档 */
-(void)encodeWithCoder:(NSCoder *)aCoder{
    
    [aCoder encodeObject:_timeDate forKey:TabTimeData];
    [aCoder encodeObject:_illType forKey:TabillType];
    [aCoder encodeObject:_illMince forKey:TabillMince];
    [aCoder encodeObject:_illIcons forKey:TabillIcons];
    [aCoder encodeObject:_tagList forKey:@"TabTag"];
    [aCoder encodeObject:_desc forKey:@"TabDesc"];
    
}



/* 解档 */
-(instancetype)initWithCoder:(NSCoder *)aDecoder{
    
    if(self=[super init]){
        
    
    _timeDate=[aDecoder decodeObjectForKey:TabTimeData];
    _illType=[aDecoder decodeObjectForKey:TabillType];
    _illMince=[aDecoder decodeObjectForKey:TabillMince];
    _illIcons=[aDecoder decodeObjectForKey:TabillIcons];
    _tagList=[aDecoder decodeObjectForKey:@"TabTag"];
    _desc=[aDecoder decodeObjectForKey:@"TabDesc"];
    }
    
    return self;
        
}

@end
